Use AI Model Generator

The AI Model Generator helps you create a data model quickly, without building it from scratch. Describe what you need, or upload a supported document or image, or provide a publicly accessible URL to a Google Docs document, Google Sheets spreadsheet, Microsoft Word document, or Excel workbook. AI uses the supplied content to generate entities, attributes, keys, and relationships. You can then refine the model in natural language using AI Copilot.

You can start a model in several ways:

  • From prompts - Describe your model in plain language, provide a publicly accessible URL to Google Docs document, Google Sheets spreadsheet, Microsoft Word document, or Excel workbook sources, or upload an image in SVG, JPG/JPEG, or PNG formats for the AI to analyze. Alternatively, use ready-made prompt templates in the Prompt Gallery, or enterprise-ready Industry Standard prompts tailored to your industry.

  • From documents - Extract entities and relationships from existing business documents in the MS Word and PDF formats uploaded from your computer.

  • With personalization - Apply your own standards (naming, keys, audit columns) to every model.

  • With Mart integration - Enrich AI-generated entities with your organization's governed metadata.

  • From Mart sources: Use selected Mart models or libraries as context for AI modeling.

Whichever way you start, once the model is generated, you can refine it in natural language using AI Copilot, and then save it to the Mart.

Scenario: Building a Lead‑to‑Cash Model

As your organization grows, you need a model that shows how leads convert into opportunities and eventually result in customer orders. A Lead-to-Cash model helps teams understand this business flow and prepare it for implementation in both logical and physical forms.

Create Models Using Prompts

If you prefer to start from a prompt, you can describe your model in plain language, provide a public URL that documents your data model context, or upload an image in SVG, JPG/JPEG, and PNG formats. You can also use the Prompt Gallery or Industry Standard Prompts. Both approaches follow the same steps, only the way you provide the prompt differs.

Note: You can attach up to 5 files, each up to 2 MB. Supported file types include SVG, JPG/JPEG, PNG, CSV, Excel, JSON, PDF, Word (.doc / .docx).

Note: When generating models using content from URLs, ensure that the URLs are publicly accessible and HTML-based.

To create models using prompts, follow these steps:

  1. On the Overview page, go to the AI Model Generator section.

  2. In the prompt area, select a prompt using one of the following options:

    • Prompt Gallery: Select Prompt Gallery icon used to open AI Model Generator prompt templates. to open ready-made prompt templates. Select a tab based on how you want to describe your model.

      Prompt Gallery screen with ready-to-use prompts

      Tab Purpose When to use it
      Quick Start Short, one-line prompts that generate a model instantly. You want a fast starting point or are exploring ideas and prototypes.
      Business Requirements Structured prompts written in business language. You already have clear requirements and want more complete, structured output.
      Story / Narrative Prompts expressed as workflows or business scenarios. You prefer describing a process or end-to-end flow instead of listing entities.
      With Files Generates a model from an uploaded file such as CSV, Excel, or JSON (max 5 MB; datasets over ~1,000 rows may be rejected or partially processed). You already have structured data and want the model built from it.
      Guidelines Best practices for writing effective prompts. You want to improve prompt clarity and the quality of generated output.
    • For the Lead-to-Cash scenario, select the Quick Start tab, and select the CRM - Customer Relations card.

      Prompt Gallery Quick Start tab showing the CRM - Customer Relations prompt card selected.

    • Industry Standard Prompts: Select Industry Standard Prompts icon used to open industry-specific AI modeling prompts. to open enterprise-ready prompts tailored to your industry. First select the domain that matches your business area, and then select a prompt within it.

      Domain Purpose When to use it
      Banking & Payments Prompts for accounts, transactions, payments, and ledgers. You model banking, payment processing, or financial transactions.
      Insurance Prompts for policies, claims, underwriting, and coverage. You model policy administration, claims, or risk data.
      Healthcare & Life Sciences Prompts for patients, providers, encounters, and clinical data. You model healthcare records, care delivery, or life-sciences data.
      Retail & E-Commerce Prompts for products, carts, orders, and customers. You model online stores, catalogs, or order management.
      Manufacturing & Supply Chain Prompts for products, inventory, suppliers, and production. You model manufacturing operations, BOMs, or supply networks.
      Telecommunications Prompts for subscribers, plans, usage, and networks. You model telecom services, billing, or network assets.
      Energy & Utilities Prompts for meters, consumption, assets, and billing. You model utilities, metering, or energy distribution.
      Government & Public Sector Prompts for citizens, services, cases, and permits. You model public services, case management, or civic records.
      Education & EdTech Prompts for citizens, services, cases, and permits. You model public services, case management, or civic records.
      Media & Entertainment Prompts for media, content, and audience workflows. You model content catalogs, viewership, or media operations.
      Travel & Hospitality Prompts for bookings, properties, guests, and itineraries. You model reservations, stays, or travel services.
      Logistics & Transportation Prompts for shipments, routes, fleets, and tracking. You model supply chain, delivery, or fleet operations.
      Real Estate & Property Prompts for listings, leases, tenants, and property assets. You model property portfolios, leasing, or tenancy.
      Human Resources Prompts for employees, roles, payroll, and org structures. You model workforce, payroll, or organizational data.
      Sale, Marketing & CRM Prompts for leads, opportunities, campaigns, and customer 360 with consent tracking. You model sales pipelines, CRM, or marketing flows.
    • For the Lead-to-Cash scenario, select the Sales, Marketing & CRM domain, and select the Sales Pipeline & CRM card.

      Industry Standard Prompts showing the Sales Pipeline & CRM prompt within the Sales, Marketing & CRM domain.

      Note: Use the search box in either panel to quickly find a prompt by keyword.

  3. Select Use this prompt.

    The selected prompt opens in AI Model Generator prompt area.

  4. Refine the prompt to reflect your business requirements.

    For example,

    Design a data model that represents Lead‑to‑Cash. Include Lead, Opportunity, Customer, Order, and Invoice. Show how leads convert to opportunities and how opportunities result in customer orders.

  5. Select Model Type Selection Icon and select Logical/Physical.

  6. Select Create.

    The Lead-to-Cash Core review and selection section appears.

    AI model review screen showing selected Customer and Order entities and their relationship.

  7. Review the generated entities and relationships, and adjust the selection if required.

  8. Select Confirm.

    AI analyzes the selected entities and relationships, generates the model, and opens it in the Diagram View. The AI Copilot Conversation pane opens alongside the diagram with the actions that generated the model. You can continue to refine your model using further descriptions here.

    Diagram view with Customer and Order entities and AI Copilot conversation panel.

    Tips for using the Prompt Gallery

    • Start with a simple prompt, and then refine it incrementally.

    • Use real business terminology, such as Lead, Opportunity, Order, and Invoice.

    • Review the Guidelines tab to improve prompt quality.

    • Use With Files for data-driven modeling when your file size and row count are within supported limits.

    • Always review generated entities, attributes, and relationships before finalizing the model.

Build Models from Word and PDF Documents

You can generate a data model from Word (.doc and .docx) and PDF documents. The AI Model Generator extracts content from both the text and the images embedded within the document, and uses it to generate model entities, attributes, and relationships.

To build models from Word or PDF documents, follow these steps:

  1. On the Overview page, go to the AI Model Generator section.

  2. In the prompt area, select Attachment Icon .

  3. Select the Word or PDF document you want to use, and then select Open.

    For example, you might select a PDF document that describes a Lead-to-Cash business process and includes an ER diagram. AI Copilot analyzes the document content and diagram to identify entities, attributes, keys, and relationships, then automatically generates a logical data model that represents the business requirements, including entities such as Lead, Opportunity, Customer, Order, and Invoice.

    The document appears in the prompt area.

    PDF document attached in AI Model Generator prompt area.

  4. Enter a prompt in the prompt area. For example,

    Generate a data model based on the attached document.

    Generating a data model from an attached document

  5. Select Create.

    The review and selection section (for example, Lead-To-Cash-Updated) appears, showing the generated entities and relationships from your document.

    Lead-to-cash model with selected entities and relationships

  6. Review the generated entities and relationships, and edit your selections by selecting or clearing the corresponding checkboxes.

  7. Select Confirm.

    AI analyzes the selected entities and relationships, generates the model, and opens it in the Diagram View. The AI Copilot Conversation pane opens alongside the diagram with the actions that generated the model. You can continue to refine your model using further descriptions here.

    Lead-to-cash model created from attached document

Personalize AI-Generated Models

Personalization lets you add custom instructions that AI applies to every model it generates for you. Use it to set naming conventions, audit columns, normalization rules, and key preferences, so all your generated models match your standards.

To personalize your models, follow these steps:

  1. In the AI Model Generator prompt area, select Personalization icon used to define AI modeling standards and preferences..

    The Personalization section opens.

    Personalization panel for defining AI model generation standards and preferences.

  2. In the text box, enter your custom instructions. For example, Use snake_case for table and column names.

  3. (Optional) Use the Quick add buttons to insert common rules, such as Naming conventions, Audit columns, Surrogate keys, Normalization, Soft deletes, Compliance, Timestamps in UTC, and Descriptions.

  4. Select Save.

    Your instructions are validated to confirm they are relevant to data modeling, and then applied. A blue dot appears on the Personalization icon to indicate that saved instructions are active.

    Personalization enabled indicator showing active AI modeling instructions.

    Saved instructions apply globally to every model you generate with the AI Model Generator - whether from a plain-language prompt or an uploaded Word or PDF document - until you update or clear them.

    Note: Personalization instructions apply to all future models. To apply instructions to a single model, select Clear, enter the instructions for that model, generate it, and then clear or update the instructions before you generate your next model.

    For example, you save this personalization instruction:

    Use snake_case for table and column names.

    Then you generate a model from a plain-language prompt:

    Design a data model for a Lead-to-Cash scenario. Include Lead, Opportunity, Customer, Order, and Invoice, and show how they relate.

    AI generates the entities—lead, opportunity, customer, order, and invoice, following your saved instruction, so all table and column names use snake_case.

    Generated model objects following the saved snake_case personalization rule.

Enrich AI-Generated Models with Mart Metadata

When you enable Mart Integration during AI model generation, the system automatically matches your AI-generated entities with governed metadata from your organization's Quest erwin Mart Portal repository. This enrichment ensures that your model uses canonical names, standardized attributes, and validated definitions, reducing duplication and improving consistency across your organization.

To enable Mart integration, switch on the Mart Integration option (Mart Integration toggle used to enable Mart metadata matching during model generation.) in the AI Model Generator before you select Create. When the integration is enabled, a confirmation label appears, indicating that MartMart integration enabled in AI Model Generator matching is active.

After you enter your prompt and select Create, the process runs in phases:

  1. AI generates and Mart matches: The AI processes your prompt and generates a high-level set of entities and relationships. Each generated entity name is then matched against the Quest erwin Mart Portal repository to identify corresponding governed entities. If a match is found, the system records the association; if no match exists, the entity remains AI-only. While matching runs, a progress indicator appears in the preview dialog: Checking Mart repository for matching entities...

    AI Model Generator matching entities with Mart repository

    Note: To prevent duplicate entities, the assistant reuses the canonical name and attributes of an existing entity in the connected Mart repository. This ensures that your model leverages existing business definitions rather than creating redundant entries.

  2. Preview with Mart highlights: The preview dialog displays all generated entities and visually distinguishes Mart-matched entities from AI-only entities:

    • A blue border indicates a Mart-matched entity (AI-only entities have a purple border).
    • A MART badge on the entity card shows "Attributes sourced from Mart repository".
    • A count badge at the top of the dialog shows how many entities were matched (for example, 4 from Mart).
    • A preview of the first few Mart attributes appears on each matched entity card.

    Entities matched with Mart repository

    You can select or clear any entity before confirming, whether it is Mart-matched or AI-only.

  3. Confirm and create: When you confirm the preview, Mart-matched entities are created using the official Mart metadata, including the name, description, columns, data types, and primary key flags, which are fetched fresh from Mart at creation time. AI-only entities are created using the AI-generated definition. Both types of entities appear in the final diagram, allowing you to see which definitions come from Mart and which are AI-generated.

    Generated data model diagram showing Mart and AI entities

Note: Mart matching does not block the generation process. If Mart is unavailable or no match is found for an entity, generation continues normally, and the entity is created as an AI-only entity.

Use Mart Models for AI Modeling

Use a Mart model as source context when you want AI to work from an existing model. This workflow differs from enriching newly generated entities with Mart metadata.

Turn on the Mart integration option in the AI Model Generator prompt area to make the Mart source picker available.

To add Mart libraries or models as sources, follow these steps:

  1. In the AI Model Generator prompt area, turn on the Mart integration option.

    AI Model Generator prompt area with Mart Model source selector turned on

  2. Select Add Mart Sources icon used to select Mart libraries and models as AI modeling sources..

    The Select Mart source libraries and models dialog opens.

    Mart Source Libraries and Model Dialog box

  3. Select one or more libraries or models.

    Selecting a library adds its path as a source; when the request runs, AI can discover models in that library and its sublibraries.

    Mart source picker showing selected library and model paths

  4. Select Add to prompt.

    The selected sources are added to the prompt.

    Mart Source Models in the AI Model Generator Prompt area

  5. Enter a prompt that describes the model to derive from the selected source and the Mart location where you want to save it.

    For example,

    Derive a physical Databricks model from Sales Performance and save this model to Mart://Mart/Bank.

    AI Model Generator configured to create a physical Databricks model from the Sales Performance Mart model and save it to a specified Mart location

  6. Select Create.

    The Start a Mart-assisted workspace dialog opens.

    Start a Mart-assisted workspace dialog displaying the workspace name and start options.

  7. Review the workspace name and update it if necessary.

  8. Select Start workspace.

    QDM creates an empty workspace, and AI processes your request without displaying the high-level model preview.

    When the request is complete, AI displays the actions performed and confirms the derived model and its Mart save location. For example, the following screenshot displays the actions and confirmation for the Sales Performance - Databricks model saved to the Bank Mart library.

    AI Copilot action history showing successful steps used to derive and save a model from a Mart source.

  9. Open the model selector and select the derived model.

    For example, Derived from Sales Performance.

    Model selector displaying the derived model available in the workspace.

  10. Review the derived model in the diagram.

    Derived physical model generated from a Mart source and displayed in Diagram View.

AI creates a separate derived model and confirms the save to the specified Mart location. The workspace model remains empty unless you ask AI to create or modify content in it.

Refine Models using AI Copilot

After the initial model is generated, you can continue refining it in the AI Copilot Conversation pane. This allows you to update the model incrementally as new business requirements emerge.

For example, if the sales team needs better visibility into where opportunities are managed, you can add that detail without rebuilding the model.

To refine models using AI Copilot, follow these steps:

  1. In the AI Copilot Conversation pane, enter a prompt. For example,

    Add a Sales Region attribute to Opportunity to track where each opportunity is managed.

    AI updates the model directly. For example, it adds the SalesRegion attribute to the Opportunity entity.

    AI Copilot Conversation pane showing refinement prompts applied to the data model, with an updated Opportunity entity.

  2. Review the updated diagram to confirm that the Lead-to-Cash flow remains clear and accurate.

    After refining the model, review the changes in both views to make sure business intent and implementation details remain aligned.

    • In Logical view, confirm that the added attributes align with business requirements.

      Logical view of the Lead‑to‑Cash data model showing Opportunity with the SalesRegion column added, including foreign keys and database‑level attributes.

    • In Physical view, verify that the same changes are reflected as database columns, keys suitable for implementation.

      AI Copilot Conversation pane showing refinement prompts applied to the data model, with an updated Opportunity entity.

Both views remain synchronized, helping ensure that business meaning and technical design stay aligned as the model evolves.

Manage Multiple Conversations For a Model

You can create multiple conversations for the same model. Each conversation has its own history, and you can switch between conversations to return to earlier work or explore another design approach.

To start or switch conversations, follow these steps:

  1. Open the model whose AI conversations you want to manage.

  2. Open the AI Copilot Conversation pane.

    AI Conversation pane showing new chat icon

  3. Select New Chat icon used to create a new AI conversation for the current model. .

    The New chat for this model dialog opens.

    New chat for this model dialog showing the Conversation title field and New chat button

  4. In Conversation title field, enter a name for the conversation. For example, Lead-to-Cash alternative design.

  5. Select New chat.

    The conversation switches to the new chat for the same model.

    New AI conversation created for the current model.

  6. Enter a prompt describing what you want to explore or change in the model.

  7. To switch conversations, select the arrow next to the conversation title in the AI Copilot pane.

    The Switch conversation dialog opens.

    Switch conversation dialog listing available conversations for the model.

  8. Select a conversation, and then select Done.

  9. To rename the current conversation, select Conversation options menu containing actions such as Rename and Share Context. and select Rename.

    The Rename conversation dialog opens.

    Rename conversation dialog with a field for entering a new conversation title.

  10. In Conversation title field, enter a name for the conversation and select Save.

    The new conversation title is saved and displayed in the conversation list.

Share Context between Conversations

You can share information from one conversation with another, including a conversation associated with another model. Only the text that you enter in the sharing dialog is sent; your conversation history is not sent. Sharing context does not start another agent. You must open the destination conversation and ask the assistant to continue.

To share context between conversations, follow these steps:

  1. Open the conversation containing the information that you want to share.

  2. In the AI Copilot Conversation pane, select Conversation options menu with the Share context with another chat command. and select Share context with another chat.

    The Share context with another chat screen opens.

  3. Share context with another chat dialog showing conversation selection and context sharing options.

  4. In the Choose a conversation field, select the destination conversation.

    For example, select Sales Performance - Databricks. If the conversation is not shown, select Load more conversations.

  5. In the What help do you need? field, describe the assistance you want.

    For example, Suggest how the lead-to-cash model could relate to sales performance.

  6. In the Context to share field, enter the information to share. For example, Design a data model that represents Lead-to-Cash. Include Lead, Opportunity, Customer, Order, and Invoice. Show how leads convert to opportunities and how opportunities result in customer orders.

    Share context dialog populated with a destination conversation, request, and shared context.

  7. Select Review shared context.

    Review shared context screen displaying the destination conversation and content to be shared.

  8. Review the destination conversation, your request, and the context to share. To make changes, select Back.

  9. Select Share context.

    A confirmation message indicates that the context was shared.

    Confirmation message indicating that conversation context was successfully shared.

  10. Select Open conversation.

    The destination conversation opens and displays the Shared context card with the request and context you shared.

    Destination conversation displaying a shared context card awaiting a response.

  11. In Describe changes, enter a prompt asking the assistant to continue.

    For example, Use the shared context to suggest how the lead-to-cash model could relate to sales performance.

  12. To respond to the original conversation, enter a message in the Your reply field and select Reply to original chat.

    The status changes from Awaiting a reply to Reply sent.

    Shared context card showing the reply sent status in the destination conversation.

The shared context is available in the destination conversation.

Review AI Actions and Results

The AI Copilot pane shows the actions AI performs in response to your request. You can check their status and duration and view the details of each action.

To review AI actions and their results, follow these steps:

  1. In the AI Copilot pane, review the actions for your request.

    Each action displays an icon and a status indicator. Green indicates success; red indicates failure.

    For example, the following screenshot shows the actions and time taken to derive a Databricks model from Sales Performance and save it to Mart. The Open Mart Model and Derive Model actions display different icons, and the green indicators show that all three actions succeeded.

  2. Expand an action to view its request and result.

    For example, the following screenshot shows the details of the Open Mart Model action for the Sales Performance model.

    Expanded AI action details displaying the Open Mart Model request and result.

Create UDPs using AI Copilot

You can use natural-language prompts in AI Copilot to create user-defined property (UDP) definitions and set their values on model objects. Supported object types depend on the model and target database.

To create UDPs using AI Copilot, open a model and follow these steps:

  1. In the AI Copilot Conversation pane, enter a prompt to create a UDP.

    For example,

    Create a UDP called Data Owner on entities.

    AI confirms that the Data Owner UDP was created for entities.

    AI Copilot creates a Data Owner user-defined property for entities

  2. To view the new UDP, double-click an entity in Diagram View and select the UDP tab in the Quick Editor.

    For example, double-click Lead. The UDP tab displays Data Owner with an empty value.

    Data Owner UDP displayed in the Quick Editor

  3. To check the UDP for another entity, double-click that entity and select the UDP tab.

  4. To set a UDP value on an object, enter a prompt in the AI Copilot Conversation pane.

    For example:

    Set the Data Owner UDP to Finance Team on the Invoice entity.

    AI Copilot sets the Data Owner value to Finance Team for the Invoice entity.

    AI Copilot assigns the Data Owner UDP to the Invoice entity.

    To verify the value, double-click the Invoice entity and select the UDP tab in the Quick Editor. The tab displays Data Owner with the value Finance Team.

    Data Owner UDP set to Finance Team for the Invoice entity.

  5. To create a UDP and set its value in one request, you can combine the actions in a prompt.

    For example:

    Create a UDP called Refresh Frequency on tables, then set it to Daily on the Order table.

    AI Copilot creates the Refresh Frequency UDP for tables and sets its value to Daily on Order.

    AI Copilot creates and assigns a Refresh Frequency UDP.

    To verify the result, double-click Order and select the UDP tab in the Quick Editor. The tab displays Refresh Frequency with the value Daily.

    Refresh Frequency UDP set to Daily for the Order entity.

    You can also ask AI Copilot to list UDP definitions, verify UDP values, set a value on multiple objects, or delete a UDP definition.

    Note: Deleting a UDP definition also removes all values assigned to it.

Saving Models to the Mart using AI Copilot

After you refine the Lead-to-Cash model, save it to the Mart so that your team can access, review, and refine it further. Instead of using the diagram toolbar, you can save the model directly from the AI Copilot Conversation pane by using a natural language prompt.

  1. In the AI Copilot Conversation pane, enter a prompt. For example,

    Save this model to the Mart as Lead-to-Cash Core at the following path: /Mart/<library_name>

    AI conversation showing successful model save to Mart.

AI saves the model to the specified library in the Quest erwin Mart Portal, and confirms the action in the conversation pane. If you do not specify a library, the model is saved to the root node.

Note: If you do not specify a library, the model is saved to the root node.

Note: The specified mart path must already exist in the Mart repository. If the path does not exist, AI Copilot returns an Invalid Model Path error and prompts you to provide a valid Mart path.
Invalid Model Path error returned when saving a model to the mart

After the model is saved, it is stored centrally in the Mart, where your team can open it from the Catalog Manager, version it, and continue refining it collaboratively.

After you make changes to the model and save it to Quest erwin Mart Portal again, Incremental Save records only the changes made since the previous save instead of rewriting the entire model each time. Incremental Save applies to models saved manually from the diagram toolbar and to models saved through AI Copilot. This helps optimize save operations and version tracking in Quest erwin Mart Portal.

When you save the updated model, the following Save dialog appears. Enter a description for the changes, and then select Save.

Save dialog for incremental save for an updated Mart model

The updated model is saved as the next version in Quest erwin Mart Portal.

Your Lead-to-Cash model is now generated, refined with AI Copilot, and saved to the Mart—ready for your team to version and build on, with logical and physical design kept in sync.